<div th:if="!${isAjax}" layout:decorator="layout" layout:fragment="content">
    <div class="row">
        <div class="col-lg-12">
            <ol class="breadcrumb">
                <li><a href="/">Home</a></li>
                <!--<li class="active"><span><a href="{{url(" backend/drug/search")}}">drug</a></span></li>-->
            </ol>
            <h1>药品信息
                <small>Secondary headline</small>
            </h1>
        </div>
    </div>
    <div class="main-box clearfix" th:fragment="content">
        <div class="main-box-header clearfix">
            <h2 class="pull-left">列表</h2>
            <div class="filter-block pull-right">
                <div class="form-group pull-left">
                    <!--<a href="{{url('backend/drug/index')}}"><input type="text" class="form-control" placeholder="Search..."></a>-->
                    <i class="fa fa-search search-icon"></i>
                </div>
                <a href="javascript:;" th:attr="data-url=@{/admin/new}" data-title="新增药品"
                   class="btn btn-primary md-trigger pull-right">
                    <i class="fa fa-plus-circle fa-lg"></i> Add
                </a>
            </div>
        </div>
        <div class="main-box-body clearfix">
            <div class="table-responsive">
                <table class="table table-striped table-hover">
                    <thead>
                    <tr>
                        <th class="text-center"><span>编号</span></th>
                        <th class="text-left"><span>用户名</span></th>
                        <th class="text-left"><span>姓名</span></th>
                        <th class="text-left"><span>状态</span></th>
                        <th class="text-left"><span>注册时间</span></th>
                        <th class="text-left"><span>操作</span></th>
                    </tr>

                    </thead>
                    <tbody>
                    <tr th:each="admin:${datas}">
                        <td><a href="#" th:inline="text">#[[${admin.id}]]</a></td>
                        <td th:text=${admin.name}></td>
                        <td th:text=${admin.realName}></td>
                        <td th:insert="widget::status(${admin.status})"></td>
                        <td th:text="${#dates.format(admin.createTime, 'yyyy/MM/dd HH:mm')}"></td>
                        <td style="width: 18%;">
                            <a th:replace="widget::view_item(@{/admin/view?id=}+${admin.id},${admin.name}+管理员信息)"></a>
                            <a th:replace="widget::edit_item(@{/admin/edit?id=}+${admin.id},修改管理员+${admin.name})"></a>
                            <a th:replace="widget::delete_item(@{/admin/delete/}+${admin.id}+'/'+${page},操作提示,是否确认删除管理员+${admin.name})"></a>
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div>
            <ul th:replace="widget::pagination('/admin/list?', ${datas})"></ul>
        </div>
    </div>
</div>
<div th:if="${isAjax}">
    <div th:replace="admin/list::content"></div>
</div>